import { Spin } from 'antd';
import './index.less';

export default function MySpin(props: { children?: any, spinning?: boolean }) {
  const { spinning, children, ...other } = props;

  return (
    <Spin spinning={spinning} {...other}>
      {children}
    </Spin>
  );
}
